package com.ruoyi.system.service.project.impl;

import com.ruoyi.system.domain.project.educationreform.EducationReformMember;
import com.ruoyi.system.mapper.project.EducationReformMemberMapper;
import com.ruoyi.system.service.project.IEducationReformMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 课程建设成员子Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-10
 */
@Service
public class EducationReformMemberServiceImpl implements IEducationReformMemberService
{
    @Autowired
    private EducationReformMemberMapper firstClassMemberMapper;

    /**
     * 查询课程建设成员子
     * 
     * @param id 课程建设成员子主键
     * @return 课程建设成员子
     */
    @Override
    public EducationReformMember selectFirstClassMemberById(Long id)
    {
        return firstClassMemberMapper.selectFirstClassMemberById(id);
    }

    /**
     * 查询课程建设成员子列表
     * 
     * @param firstClassMember 课程建设成员子
     * @return 课程建设成员子
     */
    @Override
    public List<EducationReformMember> selectFirstClassMemberList(EducationReformMember firstClassMember)
    {
        return firstClassMemberMapper.selectFirstClassMemberList(firstClassMember);
    }

    /**
     * 新增课程建设成员子
     * 
     * @param firstClassMember 课程建设成员子
     * @return 结果
     */
    @Override
    public int insertFirstClassMember(EducationReformMember firstClassMember)
    {
        return firstClassMemberMapper.insertFirstClassMember(firstClassMember);
    }

    /**
     * 修改课程建设成员子
     * 
     * @param firstClassMember 课程建设成员子
     * @return 结果
     */
    @Override
    public int updateFirstClassMember(EducationReformMember firstClassMember)
    {
        return firstClassMemberMapper.updateFirstClassMember(firstClassMember);
    }

    /**
     * 批量删除课程建设成员子
     * 
     * @param ids 需要删除的课程建设成员子主键
     * @return 结果
     */
    @Override
    public int deleteFirstClassMemberByIds(Long[] ids)
    {
        return firstClassMemberMapper.deleteFirstClassMemberByIds(ids);
    }

    /**
     * 删除课程建设成员子信息
     * 
     * @param id 课程建设成员子主键
     * @return 结果
     */
    @Override
    public int deleteFirstClassMemberById(Long id)
    {
        return firstClassMemberMapper.deleteFirstClassMemberById(id);
    }
}
